package com.example.entity.dto;

import com.example.untils.SecurityUtils;
import com.example.untils.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Api(tags = "审批查询dto")
public class WorkflowSelectDto {

    @ApiModelProperty("页码")
    private int pageNum;

    @ApiModelProperty("每页条数")
    private int pageSize;

    @ApiModelProperty("要查询的审批人的id(默认当前用户)")
    private String id;

    //设置参数默认值
    public WorkflowSelectDto setId(String id) {
        this.id = StringUtils.ifEmptySet(id,SecurityUtils.getLoginUser().getUsername());
        return this;
    }
}
